<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.ArrayList" %>
    <%@ page import="entidades.Curso" %>
    
<%@ page import="entidades.Curso" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" href="/css/style.css" type="text/css">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sistema de gestion Academia - Inscripcion materia</title>
</head>
<body>
<%
//si esta logeado
if(session.getAttribute("currentSessionUser") != null){
	session.setAttribute("paginaActiva", "EliminarInsc");
%>

<%@ include file = "estructura/Header.jsp" %>

<div id="main">
	
	<%@ include file = "estructura/MenuAlumno.jsp" %>
		
	<div id="content">
	<h1>BORRAR INSCRIPCIONES</h1><br>
		<table>
			<tr>
			<th>ID Curso</th>
			<th>Descripción</th>
			<th>Materia</th>
			<th>A&ntildeo</th>
			</tr>
			
	
			<tr>
			
			<%
			if(request.getAttribute("inscripciones") != null){
				ArrayList<Curso> listaCursos = new ArrayList<Curso>();
				listaCursos = (ArrayList<Curso>)request.getAttribute("inscripciones");
			for(Curso curso: listaCursos){
					%>
					
					
				
					<td>
		<%	
				out.println(curso.getId() + "</td>");
		%>
					<td>
		<%	
				out.println(curso.getDescripcion() + "</td>");
		%>
					<td>
		<%	
				out.println(curso.getNombreMateria() + "</td>");
				
		%>
				<td>
		<%		out.println(curso.getAnioEspecialidad() + "</td>"); %>
		
		<td ><form  action="OpcionesAlumnos" method="get" enctype="multipart/form-data" name="form"><input name="o" id="o" type="hidden"  value="99"><input name="idComisionEliminar"  type="hidden"  value="<%=curso.getId()%>"><input name="boton" id="boton" value="Eliminar" type="submit"></form></td></tr>
		<%
				}
			}
		%>	
		
		
			</table>
			
	</div>
</div>
<%@ include file = "estructura/Footer.jsp" %>

<%}else{ //no logueado, se redirecciona a login%>



<meta http-equiv="refresh" content="0;URL=Login.jsp">

</html>
<%}%>